package com.homework;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Vector;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/2 18:35
 * @description
 */
public class T5 {
    public static void main(String[] args) {
        System.out.println("请输入一行字符串：");
        String s = new Scanner(System.in).nextLine();
        char[] chars = s.toCharArray();
        HashSet hs = new HashSet();
        for (char c : chars) {
            hs.add(c);
        }
        System.out.println("出现了"+hs.size()+"种字符");
    }
}
